package com.openlab.service.car.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.openlab.service.car.dto.UserCarDto;
import com.openlab.service.car.entity.UserCar;
import com.openlab.service.car.mapper.UserCarMapper;
import com.openlab.service.car.service.UserCarService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: chenglin
 */
@Service
public class UserCarServiceImpl extends ServiceImpl<UserCarMapper, UserCar> implements UserCarService {
    @Override
    public List<UserCarDto> findCarMessage(UserCarDto userCarDto) {
        return baseMapper.selectCarMessage(userCarDto.getCar_number(), userCarDto.getWechat_mp_user_id(), userCarDto.getBuilding_id());
    }
}
